package com.example.demo.fegin;

import com.example.demo.config.FeignConfiguration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@Component
@FeignClient(value = "order",path = "/order",configuration = FeignConfiguration.class)
public interface ProviderFeignService {

    @PostMapping("/create")
    JSONObject postData(@RequestBody Map<String, Object> data);
}
